/* ResetBehaviorDecorator class implementation
 *
*/

#include "ResetBehaviorDecorator.h"

void ResetBehaviorDecorator::Execute() 
{
	behavior->Execute();
	if(behavior->GetControl()->Finished())
	{
		behavior->GetControl()->Reset();
	}
}